
public class Game {

	public static void main(String[] arg){
		
		//创建一个哥布林
		Monster m1 = new Monster();
		m1.name = "哥布林";
		m1.atk = 2;
		m1.hp = 100;
		
		//创建一个哥布林
		Monster panda = new Monster();
		panda.name = "熊猫大侠";
		panda.atk = 2;
		panda.hp = 100;
		
		//创建一个英雄
		Hero hero = new Hero();
		hero.name = "小白大侠";
		hero.atk = 20;
		hero.hp = 500;
		
		//设置要打的怪物
		hero.monster = m1;
		hero.attack();
		
		//开始打熊猫
		hero.monster = panda;
		hero.attack();
	}
}